﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;
using SocialPack.Composer.PageTypes.Tabs;

namespace SocialPack.Composer.PageTypes.Facebook
{
    [PageType("4aabcfc7-bcc3-4948-adc0-9c00b0224999", Filename = "/modules/socialpack/composer/functions/facebook/likebox.ascx", AvailableInEditMode = false, Name = "[Facebook] Like Box", Description = "Facebook Like Box")]
    public class LikeBox : FunctionBase
    {
        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "300")]
        public virtual int Width { get; set; }

        [PageTypeProperty(EditCaption = "Facebook Page", HelpText = "Link to your Facebook Page", Tab = typeof(ComposerTab), Type = typeof(PropertyString))]
        public virtual string FacebookPage { get; set; }

        [PageTypeProperty(EditCaption = "Country code", Tab = typeof(ComposerTab), DefaultValue = "en_US", DefaultValueType = DefaultValueType.Value, Type = typeof(PropertyString))]
        public virtual string CountryCode { get; set; }
    }
}